Libraries (cont.)

Two types of libraries: static libraries, and dynamic (aka "shared") libraries

Advantages and disadvantages of using static vs. dynamic libraries

Static library:

Dynamic library:

System calls

Appendix A in the textbook has a table of syscalls, with the following terminology:

Syscall table

Example: print "a":

addi $v0, $zero, 11 # 11 is the syscall code for 'print'
addi $a0, $zero, 97 # char code for 'a'
syscall

Note: $v0 contains the kind of service that will be used by the syscall (or rather, the code for that service).

Note: this is exam material.